package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Xiao
 * @date 2021/9/21
 */
public interface EmployeeService extends IService<Employee> {
    Employee login(Employee employee);

    boolean saveEmp(Employee employee);

    boolean selectEmpByUsername(String username);

    Page<Employee> selectEmpByPageAndCondition(Integer page, Integer pageSize, String name);

    boolean updateEmp(Employee employee);

    Employee getEmpById(Long id);
}
